export class Pos {
    row: number;
    col: number;

    constructor(row: number, col: number) {
        this.row = row;
        this.col = col;
    }

    nextCol(): Pos {
        return new Pos(this.row, this.col + 1);
    }

    nextRow(): Pos {
        return new Pos(this.row + 1, this.col);
    }

    toString(): string {
        return `Pos(row: ${this.row},col: ${this.col})`;
    }
}